﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTLienKetWebSIte.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTLienKetWebSIte" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
     .btnLogin
            {
                 -moz-border-radius: 10px;
                -webkit-border-radius: 10px;                           
                border:1px solid #ccc;
                border-radius:5px;                               
                behavior: url(../PIE.htc);  
                height:auto;
                }
             .btnLogin:hover
            {
                cursor:pointer;
                }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
<div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-category.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbLinkManager" runat="server" Text="Liên kết website " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>   
                                                                                             
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                           
               
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div> 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 <div style="padding:10px 0px 0px 10px" align="left">
        <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
    </div>
<div style="padding-top:5px;">
        <asp:Panel ID="pnVideo" runat="server">
            <asp:Repeater ID="rpLienKetWebsite" runat="server" >             
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>                         
                                                                      
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text="Mô tả"></asp:Label>                            
                                    </th> 
                                     <th>
                                        <asp:Label ID="lbToaDo" runat="server" Text="Liên kết website"></asp:Label>                            
                                    </th>                                      
                                                                                                                                                                                                                                                      
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>                                             
                        <td >                       
                            <a class="a" href='EHTLienKetWebSIte.aspx?ID=<%#Eval("ID")%>'>
                                 <%#Eval("MotaVN")%>
                            </a>
                        </td>    
                         <td >                       
                            
                                 <%#Eval("Website")%>
                           
                        </td>                                                                                    
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>

        <asp:Panel ID="pnVideoOther" runat="server">
            <asp:Repeater ID="rpLienKetOther" runat="server" >            
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>                         
                                                                      
                                    <th>
                                        <asp:Label ID="lbMotaOther" runat="server" Text="Description"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbToaDo" runat="server" Text="Link Website"></asp:Label>                            
                                    </th>    
                                                                                                                                                                                                                                                  
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>                                             
                        <td >                       
                            <a class="a" href='EHTLienKetWebSIte.aspx?ID=<%#Eval("ID")%>'>
                                 <%#Eval("MotaOther")%>
                            </a>
                        </td>   
                         <td >                       
                            
                                 <%#Eval("Website")%>
                           
                        </td>                            
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>
    </div>     
    <div align="center" style="padding:10px 0px 10px 0px"> 
        <asp:Panel ID="plThongtinVideo" runat="server" GroupingText="Thông tin liên kết">
             <table class="table" border="0" cellpadding="0" cellspacing="0" style="width:100%">                 
                
             <tr>
                <td>
                    <asp:Label ID="lbMota" runat="server" Text="Mô tả"></asp:Label>
                </td>
                <th>
                   <asp:TextBox ID="txtMota" CssClass="InputText" runat="server" ></asp:TextBox>               
                </th>                                                                
            </tr> 
             <tr>
                <td>
                    <asp:Label ID="lbMotaOther" runat="server" Text="Mô tả (Other)"></asp:Label>
                </td>
                <th>
                   <asp:TextBox ID="txtMoTaOther" CssClass="InputText" runat="server" ></asp:TextBox>               
                </th>                                                                
            </tr>   
             <tr>
                <td>
                    <asp:Literal ID="ltrLienKetWeb" runat="server"></asp:Literal>
                </td>
                <th>
                   <asp:TextBox ID="txtLienKet" CssClass="InputText" runat="server" ></asp:TextBox>               
                </th>                                                                
            </tr>                       
            <tr>
                <td>
                    
                </td>
                <th>
                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btnLogin" 
                        Width="70" Height="20" onclick="btnSave_Click" />        
                </th>                                                                
            </tr>
        </table> 
        </asp:Panel>
    </div>
</asp:Content>
